package lab4;

/**
 * <p>Title: CounterTester class - A simple tester for the class Counter.</p>
 * <p>Description: CS 235 Lab #3</p>
 * @author This is from the textbook - Nino & Hosch
 * @email  anthony.varghese@uwrf.edu
 * @date   February 1st 2013
 * @team   none
 * 
 */
public class CounterTester {
  /**
   * Data member: counter
   */
  private Counter counter;
  
  /**
   * Create a new CounterTester.
   */
  public CounterTester () {
    counter = new Counter();
  }
  
  /**
   * Run the test.
   */
  public void start () {
    System.out.println("Starting count:");
    System.out.println(counter.currentCount());
    counter.incrementCount();
    counter.incrementCount();
    counter.incrementCount();
    System.out.println("After 3 increments:");
    System.out.println(counter.currentCount());
    counter.reset();
    System.out.println("After reset:");
    System.out.println(counter.currentCount());
  } 
}
